// Program wprowadzajcy do instrukcji while

#import <Foundation/Foundation.h>

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int count = 1;

    while ( count <= 5 ) {
        NSLog (@"%i", count);
        ++count;
    }

    [pool drain];
    return 0;
}